package com.example.test2018131462.service;

import com.example.test2018131462.bean.UserBean;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author Sakura
 */
public interface UserService {
    UserBean loginIn(String name,String password);

    List<UserBean> getAllUser();

    int insertUser(UserBean userBean);

    int deleteUser(String id);

    UserBean getUserById(String id);

    int updateUser(UserBean userBean);

    PageInfo<UserBean> selectUser4Page(Integer page,Integer pageSize);

}
